package org.gienah.testing.junit;

import org.springframework.context.ConfigurableApplicationContext;

/**
 * This interface defines the behavior to be used to construct the Spring
 * context.
 * 
 * @see org.gienah.testing.junit.ContextLoader
 * @author Santiago L. Valdarrama
 * @since E0.1
 */
public interface IContextLoader {

	/**
	 * Constructs the Spring context using the list of Spring configuration
	 * files provided.
	 * 
	 * @param locations The list of Spring configuration files.
	 * @return An instance of the constructed Spring context.
	 */
	public ConfigurableApplicationContext loadContext(String[] locations);
}
